package cn.com.roy.thread.t6_2.singleton_5;

public class MyObject {
    private static class MyObjectHandler{
        private static MyObject myObject = new MyObject();
    }

    public static MyObject getInstance() {
       return MyObjectHandler.myObject;
    }
}
